package cc.fs.zhihuapp.utils;

import android.content.Context;
import android.content.pm.PackageManager;

/**
 * Created by fostion on 2015/11/7.
 */
public class PhoneDevices {
    /** 检测手机设备是否有摄像头 */
    public static boolean isHasCameraDevices(Context context) {
        if (context.getPackageManager().hasSystemFeature(PackageManager.FEATURE_CAMERA)){
            return true;
        } else {
            return false;
        }
    }
}
